/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Jdfusion.Model
{

    /// <summary>
    ///  负载均衡监听器
    /// </summary>
    public class LbHttpListener
    {

        ///<summary>
        /// 负载均衡实例前端使用的端口。
        ///</summary>
        public int? ListenerPort{ get; set; }
        ///<summary>
        /// 负载均衡实例后端使用的端口。
        ///</summary>
        public int? BackendServerPort{ get; set; }
        ///<summary>
        /// 当前监听的状态。
        ///</summary>
        public string Status{ get; set; }
        ///<summary>
        /// 调度算法。
        ///</summary>
        public string Scheduler{ get; set; }
        ///<summary>
        /// 绑定的服务器组ID。
        ///</summary>
        public string VServerGroupId{ get; set; }
        ///<summary>
        /// 是否开启健康检查。
        ///</summary>
        public string HealthCheck{ get; set; }
        ///<summary>
        /// 否  健康检查使用的端口
        ///</summary>
        public int? HealthCheckConnectPort{ get; set; }
        ///<summary>
        /// 否  健康检查连续成功多少次后，将后端服务器的健康检查状态由fail判定为success。取值：2-10
        ///</summary>
        public int? HealthyThreshold{ get; set; }
        ///<summary>
        /// 否  健康检查连续失败多少次后，将后端服务器的健康检查状态由success判定为fail。取值：2-10
        ///</summary>
        public int? UnhealthyThreshold{ get; set; }
        ///<summary>
        /// 否  接收来自运行状况检查的响应需要等待的时间。如果后端ECS在指定的时间内没有正确响应，则判定为健康检查失败。取值：1-300（秒）
        ///</summary>
        public int? HealthCheckTimeout{ get; set; }
        ///<summary>
        /// 否  健康检查的时间间隔。取值：1-50（秒）
        ///</summary>
        public int? HealthCheckInterval{ get; set; }
        ///<summary>
        /// 否  健康检查正常的HTTP状态码，多个状态码用逗号分隔。取值：http_2xx（默认值） | http_3xx | http_4xx | http_5xx
        ///</summary>
        public string HealthCheckHttpCode{ get; set; }
    }
}
